import moment from 'moment'
import React from 'react'
import { FC } from 'react'
import './hottop.css'

interface IProps {
  updateTime: number | null
}

const HotTop: FC<IProps> = ({updateTime}) => {
  return (
    <div className="hottop">
      <div className="hotopct">
        <div className="u-hmsprt1 hoticon"></div>
        <div className="hottime">更新日期：{updateTime ? moment().format('MM月DD日') : ''}</div>
      </div>
    </div>
  )
}

export default HotTop
